package com.tianhao.luo.v2;

/**
 * @ClassName: InstallSoftware
 * @Description: 软件安装
 * @author: tianhao.luo@hand-china.com
 * @date: 2020/7/14  17:22
 */
public class InstallSoftware {

    public void installWizard(Wizard wizard) {
        int first = wizard.first();
        //根据first返回的结果，看是否需要执行second
        if (first>50){
            int second = wizard.second();
            if (second>50){
                int third = wizard.third();
                if (third>50){
                    wizard.first();
                }
            }
        }
    }
}
